<%--
  Created by IntelliJ IDEA.
  User: 莫
  Date: 2018/1/7
  Time: 14:57
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%
    String name=request.getParameter("name");
%>
<%=name%>

<script>
    var result = "<%=request.getParameter("name")%>";
    console.log(result);
</script>
</body>
</html>
